package base.thread_JUC2.chapter01.demo006;

import java.time.LocalDateTime;
import java.util.concurrent.TimeUnit;

public class DataSourcesLoader implements  Runnable{
    @Override
    public void run() {
        System.out.printf("加载数据源，%s\n", LocalDateTime.now());
        try {
            TimeUnit.SECONDS.sleep(4);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.printf("加载数据源结束，%s\n", LocalDateTime.now());
    }
}
